package com.mylib.libcore.utils;

import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.WindowManager;

//tab-key-to-value
public class TabKeyUtils {
    public static String getTabByKey(String key){
        String value ="";
        switch (key){
            case "weather":
                value = "天气";
                break;
            case "gold":
                value = "玩赚";
                break;
            case "micro":
                value = "微文";
                break;
            case "news":
                value = "资讯";
                break;
            case "music":
                value = "音乐";
                break;
            case "video":
                value = "视频";
                break;
            case "novel":
                value = "小说";
                break;
            case "advert":
                value = "广告";
                break;
            case "game":
                value = "游戏";
                break;
        }
        return value;
    }

    //检测tab否否后台控制
    public static boolean checkTabCanUse(String key){
        boolean value = true;
        switch (key){
            case "天气":
            case "金币":
            case "微文":
            case "资讯":
            case "音乐":
            case "视频":
            case "小说":
            case "广告":
            case "游戏":
                value = false;
                break;
        }
        return value;
    }

}